package com.selftool.gui.superframe.action;

import com.selftool.base.NCButton;
import com.selftool.gui.devframe.TableModel;
import com.selftool.gui.superframe.SuperFrame;
import com.selftool.log.Logger;
import com.selftool.mapper.PatchMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @program: selftool
 * @description: 研发管理切换按钮
 * @author: CYQ
 * @create: 2024-02-20 15:49
 **/
@Component
public class DevButton extends NCButton {

    @Autowired
    private static PatchMapper mapper;
    /**
     * @param obj
     * @throws Exception
     */
    @Override
    protected void execute(Object obj) throws Exception {
        Logger.info("DevButton...");
        //切换页面1Dev管理
        SuperFrame.showPanel(1);
        //查询补丁记录，渲染表格内容
//        List<PatchVO> list = mapper.selectList(null);
//        Logger.write("selectList值为"+list.toString());
//        SuperFrame.
        TableModel.refresh();
//        TableModel
    }
}
